﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _2._2
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] arr = new int[] { 1,1,1,1,1};
            int k = 11111;
           // int k=5;
           // string s="";
            for (int j = 1; j <= 4; j++)
            {
                for (int i = 0; i <= 4; i++)
                {
                    //Console.WriteLine(arr[i]);
                    //k = 1 + i;
                    //  arr[i] = arr[4] + 1;
                    // s += arr[4];
                    //arr[i] = arr[4] + i;
                    arr[j] = arr[4] + 1;
                    Console.WriteLine(arr[i]);
                }
                Console.ReadLine();
            }
            //    Console.ReadLine();
          //  }
          //  Console.WriteLine(s);
            /*
            1 1 1 1 1
            1 1 1 1 2
            1 1 1 1 3
            1 1 1 1 4
            1 1 1 2 1
            1 1 1 2 2
            1 1 1 2 3
            1 1 1 2 4
            1 1 1 3 1
             */

            Console.ReadLine();
            
        }
    }
}
